<script>
	import Vue from 'vue'
	import store from './store/index.js';
	import updateCustomBarInfo from './tuniao-ui/libs/function/updateCustomBarInfo.js';
	// #ifdef APP-PLUS
	import APPUpdate from '@/libs/update/appUpdate.js';
	// #endif
	export default {
		onLaunch: function() {
			// 获取设备的状态栏信息和自定义顶栏信息
			updateCustomBarInfo().then((res) => {
				store.commit('$tStore', {
					name: 'vuex_status_bar_height',
					value: res.statusBarHeight
				})
				store.commit('$tStore', {
					name: 'vuex_custom_bar_height',
					value: res.customBarHeight
				})
			})
		},
		onShow: function() {
			// #ifdef APP-PLUS
			APPUpdate();
			// #endif
		},
		onHide: function() {
		}
	}
</script>

<style lang="scss">
	@import './tuniao-ui/index.scss';
	@import './tuniao-ui/iconfont.css';
	@import 'static/css/common.scss';
	@import 'static/font/iconfont.css';
</style>